package com.jiyun.dispatch;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jiyun.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @author zqtao
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "订单任务关联表")
@TableName("user_job")
public class UserJob extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Schema(description = "任务id")
	@TableField("user_id")
	private Long userId;

	@Schema(description = "任务id")
	@TableField("job_id")
	private Long jobId;

	@Schema(description = "参数")
	@TableField("parameter")
	private String parameter;

	@Schema(description = "任务状态")
	@TableField("status")
	private Integer status;

	@Schema(description = "查询结果")
	@TableField("result_data")
	private String resultData;  // 存储JSON化的查询结果

}
